package com.primeton.wh.mcenter.api;

import com.primeton.wh.mcenter.api.fallback.MessageClientFallback;
import com.primeton.wh.mcenter.api.model.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author: YunTao.Li
 * @create: 2020-06-04 22:21
 * @description:
 **/
@FeignClient(value = "ccms-mcenter", fallback = MessageClientFallback.class)
public interface MessageClient {

    @PostMapping({"/mcenter/message/send"})
    public Map<String, String> sendMessage(@RequestBody Message recourd);

    @PostMapping({"/mcenter/message/add"})
    public Map<String, String> addMessage(@RequestBody Message recourd);
}
